package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CyAfterinvestigationMapper;
import com.ruoyi.system.domain.CyAfterinvestigation;
import com.ruoyi.system.service.ICyAfterinvestigationService;
import com.ruoyi.common.core.text.Convert;

/**
 * 策义问卷调查：售后问卷调查Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-01-05
 */
@Service
public class CyAfterinvestigationServiceImpl implements ICyAfterinvestigationService 
{
    @Autowired
    private CyAfterinvestigationMapper cyAfterinvestigationMapper;

    /**
     * 查询策义问卷调查：售后问卷调查
     * 
     * @param id 策义问卷调查：售后问卷调查主键
     * @return 策义问卷调查：售后问卷调查
     */
    @Override
    public CyAfterinvestigation selectCyAfterinvestigationById(Long id)
    {
        return cyAfterinvestigationMapper.selectCyAfterinvestigationById(id);
    }

    /**
     * 查询策义问卷调查：售后问卷调查列表
     * 
     * @param cyAfterinvestigation 策义问卷调查：售后问卷调查
     * @return 策义问卷调查：售后问卷调查
     */
    @Override
    public List<CyAfterinvestigation> selectCyAfterinvestigationList(CyAfterinvestigation cyAfterinvestigation)
    {
        return cyAfterinvestigationMapper.selectCyAfterinvestigationList(cyAfterinvestigation);
    }

    /**
     * 新增策义问卷调查：售后问卷调查
     * 
     * @param cyAfterinvestigation 策义问卷调查：售后问卷调查
     * @return 结果
     */
    @Override
    public int insertCyAfterinvestigation(CyAfterinvestigation cyAfterinvestigation)
    {
        return cyAfterinvestigationMapper.insertCyAfterinvestigation(cyAfterinvestigation);
    }

    /**
     * 修改策义问卷调查：售后问卷调查
     * 
     * @param cyAfterinvestigation 策义问卷调查：售后问卷调查
     * @return 结果
     */
    @Override
    public int updateCyAfterinvestigation(CyAfterinvestigation cyAfterinvestigation)
    {
        return cyAfterinvestigationMapper.updateCyAfterinvestigation(cyAfterinvestigation);
    }

    /**
     * 批量删除策义问卷调查：售后问卷调查
     * 
     * @param ids 需要删除的策义问卷调查：售后问卷调查主键
     * @return 结果
     */
    @Override
    public int deleteCyAfterinvestigationByIds(String ids)
    {
        return cyAfterinvestigationMapper.deleteCyAfterinvestigationByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除策义问卷调查：售后问卷调查信息
     * 
     * @param id 策义问卷调查：售后问卷调查主键
     * @return 结果
     */
    @Override
    public int deleteCyAfterinvestigationById(Long id)
    {
        return cyAfterinvestigationMapper.deleteCyAfterinvestigationById(id);
    }
}
